package wzh.crm.ui.customer;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import wzh.crm.R;
import wzh.crm.bl.CURDBL;
import wzh.crm.bl.BL;
import wzh.crm.ui.AllAndMineListActivity;
import wzh.crm.ui.DisplayListView;
import wzh.crm.ui.contact.ContactDetailsActivity;
import wzh.crm.ui.contact.ContactList;
import wzh.crm.vo.ContactVo;
import wzh.crm.vo.CustomerVo;

/**
 * Created by wangzehao on 2016/5/23.
 */
public class CustomerListActivity extends AllAndMineListActivity<CustomerVo> {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("客户");
        Button all= (Button) findViewById(R.id.button_all);
        Button mine= (Button) findViewById(R.id.button_mine);
        all.setVisibility(View.GONE);
        mine.setVisibility(View.GONE);
    }

    @Override
    protected CURDBL<CustomerVo> setInitBl() {
        return BL.customerBL();
    }

    protected DisplayListView<CustomerVo> buildList() {
        return new CustomerList(this,null);
    }

    public void add(View view){
        Intent i=new Intent(this,CustomerDetailsActivity.class);
        startActivity(i);
    }
}
